<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/14 0014
 * Time: 14:19
 */
namespace app\index\controller;

use think\Controller;

class Login extends Publiccom
{
    public function index()
    {
        return view();
    }
    public function login()
    {
        $post=input('post.');
        $state = $this->logins($post['username'],$post['password']);
        return $state;
    }
    public function logout()
    {
        session('username', null);
        return 1;
    }
}